//
//  relationTableViewCell.m
//  绿地管理系统
//
//  Created by rimi on 16/1/26.
//  Copyright © 2016年 hexs. All rights reserved.
//

#import "relationTableViewCell.h"

@implementation relationTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initializeAppearance];
    }
    return self;
}

- (void)initializeAppearance
{
    [self.contentView addSubview:self.headImage];
    [self.contentView addSubview:self.real_nameLabel];
    [self.contentView addSubview:self.relation_type];
    [self.contentView addSubview:self.relationshipimageView];
    [self.contentView addSubview:self.relationshipimageView1];
    [self.contentView addSubview:self.relationshipLabel];
    [self.contentView addSubview:self.relationshipLabel1];
}

- (UIImageView *)headImage
{
    if (_headImage == nil) {
        _headImage = ({
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(3, 3, 15, 15)];
            imageView.image = [UIImage imageNamed:@"男_03"];
            imageView;
        });
    }
    return _headImage;
}

- (UILabel *)real_nameLabel
{
    if (_real_nameLabel == nil) {
        _real_nameLabel = ({
            UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(35, 7, 80, 20)];
            label.font = [UIFont systemFontOfSize:14];
            label.textColor = [UIColor colorWithRed:171/255.0 green:206/255.0 blue:127/255.0 alpha:1.0];
            label;
        });
    }
    return _real_nameLabel;
}

- (UILabel *)relation_type
{
    if (_relation_type == nil) {
        _relation_type = ({
            UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(95, 7, 100, 20)];
            label.font = [UIFont systemFontOfSize:12];
            label;
        });
    }
    return _relation_type;
}

- (UIImageView *)relationshipimageView
{
    if (_relationshipimageView == nil) {
        _relationshipimageView = ({
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(145, 7, 15, 15)];
            imageView.image = [UIImage imageNamed:@"灰色星星_03"];
            imageView;
        });
    }
    return _relationshipimageView;
}
- (UILabel *)relationshipLabel
{
    if (_relationshipLabel == nil) {
        _relationshipLabel = ({
            UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(165, 7, 80, 20)];
            label.font = [UIFont systemFontOfSize:9];
//            label.textColor = [UIColor greenColor];
            label;
        });
    }
    return _relationshipLabel;
}
- (UIImageView *)relationshipimageView1
{
    if (_relationshipimageView1 == nil) {
        _relationshipimageView1 = ({
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(210, 7, 15, 15)];
            imageView.image = [UIImage imageNamed:@"灰色心_03"];
            imageView;
        });
    }
    return _relationshipimageView1;
}
- (UILabel *)relationshipLabel1
{
    if (_relationshipLabel1 == nil) {
        _relationshipLabel1 = ({
            UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(230, 7, 80, 20)];
            label.font = [UIFont systemFontOfSize:9];
//            label.textColor = [UIColor greenColor];
            label;
        });
    }
    return _relationshipLabel1;
}
@end







